//
//  F.h
//  p2p
//
//   Formatter 工具类
//  Created by mokai on 14-7-29.
//  Copyright (c) 2014年 cloudyoo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface F : NSObject

+(NSString *)yyyyMMddFromDate:(NSDate *)date;
+(NSDate *)yyyyMMddFromString:(NSString *)str;

+(NSString *)yMdFromDate:(NSDate *)date;
+(NSDate *)yMdFromString:(NSString *)str;

+(NSString *)yyyyMMFromDate:(NSDate *)date;
+(NSDate *)yyyyMMFromString:(NSString *)str;

+(NSString *)MMddFromDate:(NSDate *)date;
+(NSDate *)MMddFromString:(NSString *)str;

+(NSString *)dFromDate:(NSDate *)date;

//加密手机号  139****1234
+(NSString *)secureMobile:(NSString *)mobile;
+(NSString *)secureBankCard:(NSString *)card;


/**
 *  金额格式化  111,111.001  小数点后面多余的0会去掉
 *
 *  @param moneyFormatWithDouble <#moneyFormatWithDouble description#>
 *  @param clearZeroWithString   <#clearZeroWithString description#>
 *  @param number                <#number description#>
 *
 *  @return
 */
+(NSString *)moneyFormatWithString:(NSString *)money;
+(NSString *)moneyFormatWithDouble:(double)money;

//消除多余0
+(NSString *)clearZeroWithString:(NSString *)number;
+(NSString *)clearZeroWithDouble:(double)number;
@end
